package com.wilson.integration.lease.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wilson.integration.lease.common.entity.LeaseAgreement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wilson.integration.lease.common.entity.vo.agreement.AgreementQueryVO;
import com.wilson.integration.lease.common.entity.vo.agreement.AgreementVO;

/**
* @author wilson
* @description 针对表【lease_agreement(租约信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface LeaseAgreementService extends IService<LeaseAgreement> {

    /**
     * 根据条件分页查询租约列表
     *
     * @param page
     * @param queryVO
     * @return
     */
    IPage<AgreementVO> pageAgreementByQuery(IPage<AgreementVO> page, AgreementQueryVO queryVO);

    /**
     * 根据id查询租约信息
     *
     * @param id
     * @return
     */
    AgreementVO getAgreementById(Long id);
}
